<template>
  <div class="about">
    <div class="success">
      <img :src="suc" alt>
      <div class="text">请插好插头，即将开始充电</div>
      <div class="des">2秒后返回主页</div>
    </div>
  </div>
</template>

<style lang="less" scoped>
@import "index.less";
</style>

<script>
import { mapActions } from "vuex";

export default {
  name: "sussess",
  data() {
    return {
      suc: require("../../assets/success.png")
    };
  },
  created() {
    this.change(false);
  },
  mounted() {
    setTimeout(() => {
      this.$router.push("/");
    }, 2500);
  },
  methods: {
    ...mapActions("Home", ["change"])
  },
  components: {}
};
</script>
